import request from '@/utils/request'

// 查询知识图谱列表
export function listKnowledgeGraph(query) {
  return request({
    url: '/business/knowledgeGraph/list',
    method: 'get',
    params: query
  })
}

// 查询知识图谱详细
export function getKnowledgeGraph(id) {
  return request({
    url: '/business/knowledgeGraph/' + id,
    method: 'get'
  })
}

// 新增知识图谱
export function addKnowledgeGraph(data) {
  return request({
    url: '/business/knowledgeGraph',
    method: 'post',
    data: data
  })
}

// 修改知识图谱
export function updateKnowledgeGraph(data) {
  return request({
    url: '/business/knowledgeGraph',
    method: 'put',
    data: data
  })
}

// 删除知识图谱
export function delKnowledgeGraph(id) {
  return request({
    url: '/business/knowledgeGraph/' + id,
    method: 'delete'
  })
}
